package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.*;

/**
 * 档案影像业务对象 file_archival_imagery
 *
 * @author xxyd
 * @date 2024-11-27
 */

@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class FileAttachmentBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String name;

    /**
     * 人员档案类型ID
     */
    @NotNull(message = "人员档案类型ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long personFileId;

    /**
     * 档案影像
     */
    @NotBlank(message = "档案影像不能为空", groups = {AddGroup.class, EditGroup.class})
    private String archivalImagery;

    private Long archivalId;

    /**
     * 排序
     */
    @NotNull(message = "排序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long orderNum;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 备注
     */
    private String remark;


}
